7ad068e1bedbccc07c7f99ee892837bcb3368444,hazelcast/src/test/java/com/hazelcast/map/BackupTest.java,BackupTest,testGracefulShutdown2,#,96
Before Change
assertEquals(size, map5.size());
assertEquals(size, map6.size());
hz3.shutdown();
hz4.shutdown();
assertEquals(size, map5.size());
After Change
waitForMigrationAndCheckSize(size, hz2, map2);
final HazelcastInstance hz3 = f.newHazelcastInstance(config);
final IMap<Integer, Integer> map3 = hz3.getMap(MAP_NAME);
final HazelcastInstance hz4 = f.newHazelcastInstance(config);
final IMap<Integer, Integer> map4 = hz4.getMap(MAP_NAME);
waitForMigrationAndCheckSize(size, hz3, map3);
waitForMigrationAndCheckSize(size, hz4, map4);
final HazelcastInstance hz5 = f.newHazelcastInstance(config);
final IMap<Integer, Integer> map5 = hz5.getMap(MAP_NAME);
final HazelcastInstance hz6 = f.newHazelcastInstance(config);
final IMap<Integer, Integer> map6 = hz6.getMap(MAP_NAME);
waitForMigrationAndCheckSize(size, hz5, map5);
waitForMigrationAndCheckSize(size, hz6, map6);
shutdownAndWait(hz);
shutdownAndWait(hz2);
waitForMigrationAndCheckSize(size, hz3, map3);
waitForMigrationAndCheckSize(size, hz4, map4);
waitForMigrationAndCheckSize(size, hz5, map5);
waitForMigrationAndCheckSize(size, hz6, map6);
shutdownAndWait(hz3);
shutdownAndWait(hz4);
waitForMigrationAndCheckSize(size, hz5, map5);